package com.moneywelcome.orderfacade;

import com.moneywelcome.orderfacade.dto.DividendOrderDto;
import com.moneywelcome.orderfacade.dto.ProfitDayDto;
import com.moneywelcome.orderfacade.dto.RedeemOrderDto;
import com.moneywelcome.orderfacade.dto.SubscribeOrderDto;
import com.moneywelcome.orderfacade.vo.OrderPageVo;
import com.moneywelcome.results.PageResult;
import com.moneywelcome.results.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(
        contextId="orderQueryApi",//服务名字
        value = "invest-order" // 区分不同client
)
public interface OrderQueryApi {
    @PostMapping("/subscribeQuery")
    Result<PageResult<SubscribeOrderDto>> subscribeRecord(@RequestBody OrderPageVo orderPageVo);
    @PostMapping("/redeemQuery")
    Result<PageResult<RedeemOrderDto>> redeemRecord(@RequestBody OrderPageVo orderPageVo);
    @PostMapping("/dividendQuery")
    Result<PageResult<DividendOrderDto>> dividendRecord(@RequestBody OrderPageVo orderPageVo);
    @PostMapping("/profitQuery")
    Result<PageResult<ProfitDayDto>> prrofitRecord(@RequestBody OrderPageVo orderPageVo);
}
